package com.yuxi.Dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yuxi.Entity.InformationOperationRecord;
import com.yuxi.Entity.UserInfo;;

/**
 *用户操作记录操作接口
 * @author hunter
 * @version 1.0
 * 2016/07/18
 */

@Repository
public interface InformationOperationRecordDao {
	/**
	 * 通过iORecordoID获取InformationOperationRecord
	 * @param 	iORecordId
	 * @return InformationOperationRecord 
	 * */
	public InformationOperationRecord getORecord(Integer iORecordId);
	/**
	 * 添加一个iORecord  并返回添加的实体类
	 * @param 	iORecordId
	 * @return InformationOperationRecord 
	 * */
	public InformationOperationRecord addORecord(InformationOperationRecord iORecord);
	/**
	 * 删除一个iORecord  并返回删除的实体类
	 * @param 	iORecord InformationOperationRecord实体类
	 * @return InformationOperationRecord 
	 * */
	public void deleteiORecord(InformationOperationRecord iORecord);
	/**
	 * 修改一个iORecord  并返回修改的实体类
	 * @param  iORecord  InformationOperationRecord实体类
	 * @return InformationOperationRecord 
	 * */
	public void modifly(InformationOperationRecord iORecord);
	/**
	 * 通过用户id获取信息操作记录
	 * @param 	id
	 * @return InformationOperationRecord 
	 * */
	public InformationOperationRecord getOperationByUserId(Integer id);
	/**
	 * 通过信息id获取信息操作记录
	 * @param 	id
	 * @return InformationOperationRecord 
	 * */
	public List<InformationOperationRecord> getOperationByInfoId(Integer id);
}
